package com.dk.shared.events.demo;

import com.dk.shared.events.common.AbstractBusEvent;
import lombok.*;
import lombok.extern.jackson.Jacksonized;

/**
 * @Description
 * @Author 王大凯
 * @Date 2023-11-17 11:37
 */
@Getter
@Setter
@ToString(callSuper = true)
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class DemoBusEvent extends AbstractBusEvent {

    private Integer num;
    protected DemoBusEvent(String source,Integer num) {
        super(source);
        this.num = num;
    }

    public static DemoBusEvent of(String source,Integer num) {
        return new DemoBusEvent(source,num);
    }
}
